package com.sdh.onlinemarket.common.util;

import java.io.File;

public class DeleteFile {

    public static void deletefileA(String folder,String fileName){
        File file = new File(folder, fileName);
        if (file.exists()){//文件是否存在
            file.delete();//删除文件
        }
    }
    public static void deletefileB(String fileUrl){
        File file = new File(fileUrl);
        if (file.exists()){//文件是否存在
            file.delete();//删除文件
        }
    }
}
